package 面向对象中级.练习;

public class Teacher extends Person{

    private int sal;//工资

    public void teachering(){
        System.out.println(getName()+"在教书~~~");
    }

    //覆盖
    public void info(){
        super.info();
        System.out.println(sal);
    }
}
